package com.tanglongan.concurrent._basic;

public class Demo06 {
    public static void main(String[] args) {
        for (int i = 0; i < 3; i++) {
            Thread t = new Demo06Thread();
            t.start();
        }
    }
}

class Demo06Thread extends Thread {
    private int count = 5;

    @Override
    public void run() {
        while (count > 0) {
            count--;
            System.out.println(Thread.currentThread().getName() + " :count=" + count);
        }
    }
}